#include <iostream>


using namespace std;

/**
 * https://www.luogu.com.cn/problem/P1428
 */
int main(){

    int n;
    cin >> n;

    //开个110个空间的数组
    int kk[110]{};

    for(int i=0; i< n;  i++){
        cin >> kk[i];
    }

    for(int i=0; i<n;i++){
        int me = kk[i];
        int less = 0;
        for(int j=0; j<i;j++){
            if (kk[j] < me) {
                less++;
            }
        }
        cout << less << " ";
    }

    return 0;
}